using System;
using CommandSystem;

namespace RgCore.Commands.RgRACommands
{
    [CommandHandler(typeof(RemoteAdminCommandHandler))]
    public class RgRACommand : ParentCommand
    {
        public RgRACommand() => LoadGeneratedCommands();
        public override string Command => "rg";

        public override string[] Aliases => Array.Empty<string>();

        public override string Description => string.Empty;

        public override void LoadGeneratedCommands()
        {
            this.RegisterCommand(new AddScore());
            this.RegisterCommand(new DatabaseState());
            this.RegisterCommand(new EndRound());
            this.RegisterCommand(new Tps());
            this.RegisterCommand(new EditProfile());
        }

        protected override bool ExecuteParent(ArraySegment<string> arguments, ICommandSender sender,
            out string response)
        {
            response = string.Empty;
            return false;
        }
    }
}